#{extends 'include/base.html' /}
#{set title:'我的主页' /}
<div class="work_nav">
    <ul>
        <li class="work_nav_active"><a href="">个人主页</a></li>
        <li><a href="@{Members.editor()}">个人资料</a></li>
        <li><a href="@{Members.reciveEmail()}">收件箱</a></li>
        <li><a href="@{Members.sendEmail()}">发件箱</a></li>
        <li><a href="@{Members.changePass()}">修改密码</a></li>
    </ul>
</div>
<div class="simple_wrap">
    <ul class="path_nav">
        <li class="path_index"><a href="@{Application.index(0)}">首页</a></li>
        <li>>个人中心</li>
    </ul>

    <ul class="work_main_nav">
        <li><a href="@{Concerns.myTrend(0)}">动态</a></li>
        <li><a href="@{Members.work(0)}">我的作品</a></li>
        <li><a href="@{Concerns.myConcern(0)}">关注</a></li>
        <li><a href="@{Collections.collectWork(0)}">收藏</a></li>
    </ul>
    <div class="person_home_wrap">
        <img src="${user.getPhoto()}" alt=""/>
        <div class="first_home_info">
            <p>${user.nickname?user.nickname:"佚名"}</p>
            <p>性别:#{if user.sex==0}男#{/if} #{else } 女#{/else}</p>
            <p>网站:${user.website}</p>
            <p>Email:${user.email}</p>
            <p>职业:${user.workArea}</p>
            <p>所在地:${user.address}</p>
        </div>
        <div class="second_home_info">
            <a href="@{Members.editor()}">编辑我的主页</a>
            <p>当前作品数:${user.articleNum}</p>
            <p>当前专辑数:${user.articleNum}</p>
            <p>被关注数:${user.fansNum}</p>
            <p></p>
        </div>
        <div class="person_desc_home">
            <p>个人说明:${user.myExplain}</p>
        </div>
    </div>
    <h3 class="person_home_work_h2">我的作品</h3>
    <ul class=work_wrap>
    #{list items:webServiceBean.data, as:"item"}
        <li><div class="work_img"><a href="@{Application.article(item.id)}"><img src="${item.photoUrl}" alt=""/></a></div><div class="work_info"><h3><a href="@{Application.article(item.id)}">${item.authorName}</a></h3><div>${item.content.raw()}</div><p class="num_work_p">  #{if item.is_verify==0}
            <span style="color: red">未审核</span>
        #{/if}
            #{else }
                评论数<span>${item.commentNum}</span>
            #{/else}</div></li>
    #{/list}
    </ul>
    <div class="clear"></div>
#{if webServiceBean.data.size==0}
    <h3 class="no_content">暂时还没有内容</h3>
#{/if}
#{else }
    <p class="see_more"><a href="@{Members.work(0)}">查看更多</a></p>
#{/else}
    <h2 class="person_home_album_h2">我的专辑</h2>
    <ul class=work_wrap>
    #{list items:A_webServiceBean.data, as:"item"}
        <li><div class="work_img"><a href="@{Members.albumItem(0,item.albumId)}"><img src="${item.url}" alt=""/></a></div><div class="work_info"><a href="@{Members.albumItem(0,item.albumId)}"><h3>${item.authorName}</h3></a><p>${item.info}</p><p class="num_work_p"> 文章数<span>${item.workNum}</span></p></div></li>
    #{/list}
    </ul>
    <div class="clear"></div>
#{if A_webServiceBean.data.size==0}
    <h3 class="no_content">暂时还没有内容</h3>
#{/if}
#{else }
    <p class="see_more"><a href="@{Members.album(0)}">查看更多</a></p>
#{/else}


</div>